package com.syg.demo;

import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;

@Service
public class B implements Interf{

    @Resource
    private C c;

    public void print(){
        System.out.println("父类");
    }

    @GetMapping("/dada")
    public void test() {
        System.out.println(c);
    }
}
